package cn.school.newExam.dao;

import cn.school.newExam.entity.ExamPlan;
import cn.school.newExam.entity.ExamScore;
import cn.school.newExam.utils.ExamScoreTable;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ExamScoreMapper extends BaseMapper<ExamScore> {
    int getClassExamScoreCount(@Param("examPlanId") String examPlanId,@Param("classId") String classId,@Param("subjectId") String subjectId);

    ExamScore getExamScore(@Param("examPlanId") String examPlanId,@Param("classId") String classId,@Param("subjectId") String subjectId,@Param("stuId") String stuId);

    List<ExamScore> queryList(ExamScoreTable examScoreTable);

    List<Long> getStudentHasTakedExam(Long studentId);
}
